package com.testfileupload.uploadimg.design.template.hummer;

public class HummerModel1 extends HummerModel {

    private boolean alermFlag = true;


    @Override
    protected void start() {
        System.out.println("悍马1启动");
    }

    @Override
    protected void stop() {
        System.out.println("悍马1停止");
    }

    @Override
    protected void alerm() {
        System.out.println("悍马1鸣笛");
    }

    @Override
    protected void enginBoom() {
        System.out.println("悍马1引擎声");
    }

    @Override
    protected boolean isAlerm() {
        return this.alermFlag;
    }

    //要不要响用户决定

    public void setAlermFlag(boolean alermFlag) {
        this.alermFlag = alermFlag;
    }
}
